package com.cf.zookeeper.model;

import com.cf.code.core.CField;
import com.cf.code.core.CModel;
import com.cf.code.core.CPage;
import com.cf.crud.entity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * boot-awm-Zookeeper
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/6/25 下午 03:24
 */
@Entity
@Table(name = "zookeeper")
@CModel(pages = {
        @CPage(title = "ZK列表", path = "zookeeper", templateName = "list.ftl", outPutName = "list.ftl"),
        @CPage(title = "ZK", path = "zookeeper", templateName = "add.ftl", outPutName = "add.ftl"),
        @CPage(title = "ZK", path = "zookeeper", templateName = "update.ftl", outPutName = "update.ftl")
})
public class Zookeeper extends BaseEntity {

    @CField(lab = "名称")
    private String name;

    @CField(lab = "连接地址")
    private String address;

    @CField(lab = "超时")
    private int timeout = 3600;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }
}
